package com.zhu.transaction.pojo;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author Zhu
 * @createtime 2021/2/10-15:12
 */
@Data
@ToString
public class OssProperties implements InitializingBean {

    private String endpoint;

    private String keyId;

    private String keySecret;

    private String bucketName;

    public static String END_POINT;
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;
    public static String BUCKET_NAME;

    @Override
    public void afterPropertiesSet() throws Exception {
        END_POINT = endpoint;
        ACCESS_KEY_ID = keyId;
        ACCESS_KEY_SECRET = keySecret;
        BUCKET_NAME = bucketName;
    }
}
